package com.springcloud.controller;

import com.springcloud.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 *
 * ClsTradeOrder 控制层
 *
 */
@RestController
@RequestMapping("/role")
public class RoleController {

    @Autowired
    RoleService roleService;

    /**
     * 查询订单
     * @param
     * @return
     */
    @RequestMapping("/tree")
    public Object find() {
        return roleService.tree();

    }

}